package com.thinkingstar.iads.datacenter.entity;

import java.io.Serializable;
import java.util.List;

import org.nutz.dao.entity.annotation.ColDefine;
import org.nutz.dao.entity.annotation.ColType;
import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Comment;
import org.nutz.dao.entity.annotation.ManyMany;
import org.nutz.dao.entity.annotation.Table;

import com.thinkingstar.iads.common.entity.AbstractEntites;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/***
 * @ClassName: dc_equipment 
 * @Description: 数据中心_设备_设备
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Comment("数据中心_设备_设备")
@Table("dc_equipment")
public class DcEquipment extends AbstractEntites implements Serializable{
	
	private static final long serialVersionUID = 1L;
	
	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	
	@Comment("设备子类型id")
	@Column
	@ColDefine(type = ColType.VARCHAR, width = 32)
	protected String equipment_children_type_id;
	
	@Comment("设备类型名称")
	@Column
	@ColDefine(type = ColType.VARCHAR, width = 50)
	protected String equipment_children_type_name;
	
	@Comment("设备代号")
	@Column
	@ColDefine(type = ColType.VARCHAR, width = 32)
	protected String equipment_code;
	
	@Comment("设备名称")
	@Column
	@ColDefine(type = ColType.VARCHAR, width = 100)
	protected String equipment_name;
	
	@Comment("185号文件要求")
	@Column
	@ColDefine(type = ColType.VARCHAR , width = 500)
	protected String equipment_num_for_185;
	
	/**
	 * relation 为中间数据表的表名，它也支持动态表名
       from 是中间数据表的字段名，这个字段将储存主对象的主键（上例的 equipment_id 的主键）
       to 是中间数据表的字段名，这个字段将储存映射对象的主键（上例的 equipment_manufacturer_id 的主键）
	 */
	@ApiModelProperty(value="dem",hidden=true)
	@ManyMany(relation = "dc_manufacturer_equipment", from = "equipment_id:id", to = "equipment_manufacturer_id:id")
	private List<DcEquipmentManufacturer> dem;

}
